package com.wxp.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wxp.dao.DaoSupport;
import com.wxp.dao.DaoSupport2;
import com.wxp.service.FullLoadService;
import com.wxp.util.IData;

@Service
public class FullLoadServiceImpl implements FullLoadService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	@Resource(name = "daoSupport2")
	private DaoSupport2 dao2;

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> realTimeFullLoad(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.realTimeFullLoad", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> fullLoadTrend(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.fullLoadTrend", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> sectionRank(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.sectionRank", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadHeader(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadHeader", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadSectionFullLoadTrend(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadSectionFullLoadTrend", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadMaxSectionFullLoad(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadMaxSectionFullLoad", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadLineFullLoadTopEight(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadLineFullLoadTopEight", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadLineFullLoadBottomSeven(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadLineFullLoadBottomSeven", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadPeakFullload(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadPeakFullload", param);
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadTopFullloadSection(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.loadTopFullloadSection", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> loadUpDownFullloadData(IData param) throws Exception {
		
		return (List<IData>) dao2.findForList("FullLoadMapper.loadUpDownFullloadData", param);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<IData> fullLoadTrendHis(IData param) throws Exception {
		return (List<IData>) dao.findForList("FullLoadMapper.fullLoadTrendHis", param);
	}

	

}
